#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>

using namespace std;

int lcm(int x, int y)
{
    int a = x, b = y;
    while (a % b)
    {
        int m = a % b;
        a = b;
        b = m;

    }
    return x * y / b;
}

int main()
{
    int x, y;
    cin >> x >> y;
    cout << lcm(x, y) << endl;
    return 0;
}

